package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 背景音乐
 * </p>
 *
 * @author chenxuebin
 * @since 2019-12-08
 */
@TableName("t_music")
public class Music extends Model<Music> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String fenleicode;
	private String fenlei;
	private String name;
	private String url;
	private Integer state;
	private Date createtime;
	private Long uid;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFenleicode() {
		return fenleicode;
	}

	public void setFenleicode(String fenleicode) {
		this.fenleicode = fenleicode;
	}

	public String getFenlei() {
		return fenlei;
	}

	public void setFenlei(String fenlei) {
		this.fenlei = fenlei;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Music{" +
			"id=" + id +
			", fenleicode=" + fenleicode +
			", fenlei=" + fenlei +
			", name=" + name +
			", url=" + url +
			", state=" + state +
			", createtime=" + createtime +
			", uid=" + uid +
			"}";
	}
}
